#include"proc.h"
#include<unistd.h>
void process(){

  char buf[size];
  memset(buf,'\0',sizeof(buf));
  //reverse
  const char *lable = "|\\-/";

  for(int i =0;i<=100;i++){

    buf[i] = '>';
    printf("[%-100s] [%d%%] [%c]\r",buf,i,lable[i%4]);
    fflush(stdout);

    //sleep
    usleep(50000); 
  }
  printf("\n");
}
